<template>
  <a-config-provider :locale="locale === 'en' ? enUS : zhCN" :theme="{
      token: {
        colorPrimary: theme.compactAlgorithm,
      },
    }">
    <router-view />
  </a-config-provider>
</template>

<script setup>
import { ref } from "vue";
import enUS from 'ant-design-vue/es/locale/en_US';
import zhCN from 'ant-design-vue/es/locale/zh_CN';
import { theme } from 'ant-design-vue'

const locale = ref(zhCN.locale);
</script>

<style scoped lang="scss">
</style>
